Skip to content

use document.body instead of getElementsByTagName#1

Open
henix wants to merge 1 commit intonanotube:masterfrom
henix:orig-bugfix
Open

use document.body instead of getElementsByTagName#1
henix wants to merge 1 commit intonanotube:masterfrom
henix:orig-bugfix

Conversation

@henix
Copy link

@henix henix commented May 22, 2012

"document.getElementsByTagName('body')" will return an array, which will cause an error when configed as "generate_for_page" at line 171 on Firefox: top_node.getElementsByTagName('*').

Because an array doesn't have function "getElementsByTagName".

The correct usage should be "document.getElementsByTagName('body')[0]" , or as I write, "document.body"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant